package com.example.text.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 菜单表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
@Data
@TableName(value = "admin_menu")
public class AdminMenu {
    private static final long serialVersionUID = 1L;

    @TableId(value="id",type = IdType.AUTO)
    Integer id;

    String path;

    String name;

    String name_zh;

    String icon_cls;

    String component;

    Integer parent_id;

    @TableField(exist = false)
    List<AdminMenu> children;

}
